﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/View/MasterPage.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="MallProject.Admin.View.User" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Contents2" runat="server">
    <li class="active"><span><img src="../../Public/Admin/images/icons/black/16/home.png" alt="Setting" />Setting</span></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contents3" runat="server">
    <ul>
                            <li>
                            	<a href="Set.aspx">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/home.png" alt="Setting" />
                                    </span>
                                	Setting
                                </a>
                            </li>
                            <li class="active">
                            	<a href="User.aspx">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/admin_user_2.png" alt="Users" />
                                    </span>
                                	Users Manager
                                </a>
                            <li>
                            	<a href="News.aspx">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/word_documents_1.png" alt="News" />
                                    </span>
                                	News Manager
                                </a>
                            </li>
                            <li>
                            	<a href="#">
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/cash_register.png" alt="Movies" />
                                    </span>
                                	Movies Manager
                                </a>
                                <ul class="closed">
                                	<li><a href="Movies.aspx">Movies</a></li>
                                	<li><a href="Orders.aspx">Orders</a></li>
                                </ul>
                            </li>
                             <li>
                            	<a href="Shops.aspx">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/file_cabinet.png" alt="Shops" />
                                    </span>
                                	Shops Manager
                                </a>
                            </li>
                            <li>
                            	<a href="Products.aspx">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/table_1.png" alt="Products" />
                                    </span>
                                	Products Managers
                                </a>
                            </li>
                           
                            <li>
                            	<a href="Feedback.aspx">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/create_write.png" alt="Feedback" />
                                    </span>
                                	Feedback Manager
                                </a>
                            </li>
                            <li>
                            	<a href="Slider.aspx">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="../../Public/Admin/images/icons/black/32/images_2.png" alt="Slider" />
                                    </span>
                                	Slider Manager
                                </a>
                            </li>
                            
                        </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Contents4" runat="server">
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <div class="grid_4">
                        	<div class="da-panel collapsible">
                            	<div class="da-panel-header">
                                	<span class="da-panel-title">
                                        <img src="../../Public/Admin/images/icons/black/16/list.png" alt="" />
                                        User Manager
                                    </span>
                                    
                                </div>
                                <div class="da-panel-content">
                                    <table class="da-table">                              
    <asp:DataGrid ID="dgrUser" runat="server" AutoGenerateColumns="False" 
        onitemcommand="dgrUser_ItemCommand" onitemdatabound="dgrUser_ItemDataBound" 
        onpageindexchanged="dgrUser_PageIndexChanged" PageSize="5" CssClass="grdU">
         <Columns>
         <asp:TemplateColumn>
                <HeaderTemplate>User</HeaderTemplate>
                <HeaderStyle CssClass="headerteamp" />
                <ItemTemplate><asp:Label ID="lblID" runat="server" Text='<%# Eval("username") %>'></asp:Label></ItemTemplate>
                <ItemStyle CssClass="itemtemp"/>
            </asp:TemplateColumn>
            <asp:TemplateColumn>
                <HeaderTemplate>Fullname</HeaderTemplate>
                <HeaderStyle CssClass="headerteamp" />
                <ItemTemplate><asp:Label ID="lblUser" runat="server" Text='<%# Eval("fullname") %>'></asp:Label></ItemTemplate>
                <ItemStyle CssClass="itemtemp"/>
            </asp:TemplateColumn>

            <asp:TemplateColumn>
                <HeaderTemplate>Email</HeaderTemplate>
                <HeaderStyle CssClass="headerteamp" />
                <ItemTemplate><asp:Label ID="lblFname" runat="server" Text='<%# Eval("email") %>'></asp:Label></ItemTemplate>
                <ItemStyle CssClass="itemtemp"/>
            </asp:TemplateColumn>

            <asp:TemplateColumn>
                <HeaderTemplate>Phone</HeaderTemplate>
                <HeaderStyle CssClass="headerteamp" />
                <ItemTemplate><asp:Label ID="lblEmail" runat="server" Text='<%# Eval("phone") %>'></asp:Label></ItemTemplate>
                <ItemStyle CssClass="itemtemp"/>
            </asp:TemplateColumn>

            <asp:TemplateColumn>
                <HeaderTemplate>Address</HeaderTemplate>
                <HeaderStyle CssClass="headerteamp" />
                <ItemTemplate><asp:Label ID="lblPhone" runat="server" Text='<%# Eval("address") %>'></asp:Label></ItemTemplate>
                <ItemStyle CssClass="itemtemp"/>
            </asp:TemplateColumn>
            <asp:TemplateColumn>
                <HeaderTemplate>Action</HeaderTemplate>
                <HeaderStyle CssClass="headerteamp" />
                <ItemTemplate>
                    <asp:ImageButton ID="info" runat="server" ImageUrl="../../Public/Admin/images/icons/color/exclamation.png" CommandName="Detail" CommandArgument='<%# Eval("id") %>' CausesValidation="False"/>
                    <asp:ImageButton ID="edit" runat="server" ImageUrl="../../Public/Admin/images/icons/color/pencil.png" CommandName="Edit" CommandArgument='<%# Eval("id") %>' CausesValidation="False"/>
                    <asp:ImageButton ID="delete" runat="server" ImageUrl="../../Public/Admin/images/icons/color/cross.png" CommandName="Delete" CommandArgument='<%# Eval("id") %>' onclientclick="return confirm('Are you sure?');" CausesValidation="False" />
                </ItemTemplate>
                <ItemStyle CssClass="itemtemp"/>
            </asp:TemplateColumn>
        </Columns>
    </asp:DataGrid>
    </table>
   </div>
  </div>
</div>
<asp:LinkButton ID="Addnew" runat="server" CssClass="da-button red" onclick="Addnew_Click">Addnew</asp:LinkButton>
</asp:View>
        <asp:View ID="View2" runat="server">
            <div class="grid_4">
                        	<div class="da-panel">
                            	<div class="da-panel-header">
                                	<span class="da-panel-title">
                                        <img src="../../Public/Admin/images/icons/black/16/pencil.png" alt="" />
                                        Edit User
                                    </span>
                                    
                                </div>
                                <div class="da-panel-content">
                                	<form class="da-form">
                                    	<div class="da-form-inline">
                                         <div class="da-form-row">
                                                <label><strong>ID</strong></label>
                                                <div class="da-form-item large">
                                                    <asp:TextBox ID="txtID" runat="server" Width="100" ReadOnly="true"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Username</strong></label>
                                                <div class="da-form-item large">
                                                	
                                                    <asp:TextBox ID="txtUser" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtUser" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Fullname</strong></label>
                                                <div class="da-form-item large"> 	
                                                    <asp:TextBox ID="txtFname" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtFname" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Birthday</strong></label>
                                                <div class="da-form-item large">
                                                    <asp:TextBox ID="txtBirth" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtBirth" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Address</strong></label>
                                                <div class="da-form-item large"> 	
                                                    <asp:TextBox ID="txtAdd" runat="server" TextMode="MultiLine"></asp:TextBox><<asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="txtAdd" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Email</strong></label>
                                                <div class="da-form-item large">                                                	
                                                    <asp:TextBox ID="txtEmail" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator5" runat="server" ErrorMessage="*" ControlToValidate="txtEmail" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Phone</strong></label>
                                                <div class="da-form-item large">                                             	
                                                    <asp:TextBox ID="txtPhone" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator6" runat="server" ErrorMessage="*" ControlToValidate="txtPhone" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Yahoo</strong></label>
                                                <div class="da-form-item large">
                                                	
                                                    <asp:TextBox ID="txtYahoo" runat="server" Width="300"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Skype</strong></label>
                                                <div class="da-form-item large">
                                                	
                                                    <asp:TextBox ID="txtSkype" runat="server" Width="300"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Position</strong></label>
                                                <div class="da-form-item large">
                                                     <asp:DropDownList ID="drlposition" runat="server">
                                                         <asp:ListItem>Admin</asp:ListItem>
                                                         <asp:ListItem>Manager</asp:ListItem>
                                                         <asp:ListItem>DataEntry</asp:ListItem>
                                                         <asp:ListItem>Staff</asp:ListItem>
                                                     </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                
                                                	<asp:LinkButton ID="btnSave" runat="server" Text="Save" 
                                                        CssClass="da-button red" onclick="btnSave_Click"></asp:LinkButton>
                                                	<asp:LinkButton ID="btnBack" runat="server" Text="Back" 
                                                        CssClass="da-button red" onclick="btnBack_Click1"></asp:LinkButton>                                                       
                                            </div>
                                        </div>
                                    </form>
                                </div>
                              </div>
           </div>
        </asp:View>
        <asp:View ID="View3" runat="server">
            <div class="grid_4">
                        	<div class="da-panel">
                            	<div class="da-panel-header">
                                	<span class="da-panel-title">
                                        <img src="../../Public/Admin/images/icons/black/16/pencil.png" alt="" />
                                        Addnew User
                                    </span>
                                    
                                </div>
                                <div class="da-panel-content">
                                	<form class="da-form">
                                    	<div class="da-form-inline">
                                            <div class="da-form-row">
                                                <label><strong>Username</strong></label>
                                                <div class="da-form-item large">                                                	
                                                    <asp:TextBox ID="txtu" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator7" runat="server" ErrorMessage=" *" ControlToValidate="txtu" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Password</strong></label>
                                                <div class="da-form-item large"> 	
                                                    <asp:TextBox ID="txtp" runat="server" Width="300" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator8" runat="server" ErrorMessage=" *" ControlToValidate="txtp" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Re-password</strong></label>
                                                <div class="da-form-item large">                                                	
                                                    <asp:TextBox ID="txtrep" runat="server" Width="300" TextMode="Password"></asp:TextBox><asp:CompareValidator
                                                        ID="CompareValidator1" runat="server" ErrorMessage=" -Re-pass fail" ControlToCompare="txtp" ControlToValidate="txtrep" Font-Size="Smaller" SetFocusOnError="True"></asp:CompareValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Fullname</strong></label>
                                                <div class="da-form-item large"> 	
                                                    <asp:TextBox ID="txtf" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator9" runat="server" ErrorMessage=" *" ControlToValidate="txtf" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Birthday</strong></label>
                                                <div class="da-form-item large"> 	
                                                    <asp:TextBox ID="TextBox1" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator10" runat="server" ErrorMessage=" *" ControlToValidate="TextBox1" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Address</strong></label>
                                                <div class="da-form-item large"> 	
                                                    <asp:TextBox ID="txtadr" runat="server" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator11" runat="server" ErrorMessage=" *" ControlToValidate="txtadr" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Email</strong></label>
                                                <div class="da-form-item large">
                                                	 <asp:TextBox ID="txte" runat="server" Width="300"></asp:TextBox></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator12" runat="server" ErrorMessage=" *" ControlToValidate="txte" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                    </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Phone</strong></label>
                                                <div class="da-form-item large">                                                	
                                                    <asp:TextBox ID="txtph" runat="server" Width="300"></asp:TextBox><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator13" runat="server" ErrorMessage=" *" ControlToValidate="txtph" Font-Size="Medium"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Yahoo</strong></label>
                                                <div class="da-form-item large">                                               	
                                                    <asp:TextBox ID="txtym" runat="server" Width="300"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Skype</strong></label>
                                                <div class="da-form-item large">                                                	
                                                    <asp:TextBox ID="txtsk" runat="server" Width="300"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                <label><strong>Position</strong></label>
                                                <div class="da-form-item large">
                                                     <asp:DropDownList ID="drlpos" runat="server">
                                                         <asp:ListItem>Admin</asp:ListItem>
                                                         <asp:ListItem>Manager</asp:ListItem>
                                                         <asp:ListItem>DataEntry</asp:ListItem>
                                                         <asp:ListItem>Staff</asp:ListItem>
                                                     </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="da-form-row">
                                                	<asp:LinkButton ID="btnAdd" runat="server" Text="Save" 
                                                        CssClass="da-button red" onclick="btnAdd_Click"></asp:LinkButton>
                                                	<asp:LinkButton ID="brnCan" runat="server" Text="Cancel" 
                                                        CssClass="da-button red" onclick="btnBack_Click1"></asp:LinkButton>                                                       
                                            </div>
                                        </div>
                                    </form>
                                </div>
                              </div>
           </div>
        </asp:View>
    </asp:MultiView>
</asp:Content>
